package org.springblade.modules.alimqtt.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

@Data
@Component
@ConditionalOnProperty(name ="aliyun.mqtt.enable", havingValue = "true",matchIfMissing = false)
public class AliyunMqttProperties {
    /**
     * 实例名
     */
    @Value("${aliyun.mqtt.domain}")
    private String domain;
    @Value("${aliyun.mqtt.instance}")
    private String instance;
    @Value("${aliyun.mqtt.port}")
    private int port;
    @Value("${aliyun.mqtt.accessKey}")
    private String accessKey;
    @Value("${aliyun.mqtt.secretKey}")
    private String secretKey;
	@Value("${aliyun.mqtt.endpoint}")
    private String endpoint;
	@Value("${aliyun.mqtt.doorGroupId}")
	private String doorGroupId;
}
